# mymodule.py

def fibo(n):
    if n <= 0:
        return []
    elif n == 1:
        return [0]
    elif n == 2:
        return [0, 1]
    else:
        fib_sequence = fibo(n - 1)
        fib_sequence.append(fib_sequence[-1] + fib_sequence[-2])
        return fib_sequence


def main():
    try:
        n = int(input("请输入一个数字: "))
        fib_sequence = fibo(n)
        print(fib_sequence)
    except ValueError:
        print("输入的不是一个有效的数字，请重新输入。")


if __name__ == "__main__":
    main()